﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Bookmarked.aspx.cs" Inherits="FlashGameSite.FormBookmarked" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="content">
        <div class="block">
            <div class="block-bot">
                <div class="head">
                    <div class="head-cnt">
                        <h3>My Bookmarked Games</h3>
                        <div class="cl">
                            &nbsp;
                        </div>
                    </div>
                </div>
                <div class="col-articles articles">
                    <div class="cl">
                        &nbsp;
                    </div>
                    <asp:UpdatePanel ID="pnlUpdate" runat="server" UpdateMode="Always">
                        <ContentTemplate>
                            <asp:DataList ID="GridGames" runat="server" RepeatColumns="3" RepeatDirection="Horizontal">
                                <ItemTemplate>
                                    <div style="margin: 10px;">
                                        <div class="image">
                                            <a href="PlayGame.aspx?gameid=<%# DataBinder.Eval(Container.DataItem, "GameID")%>">
                                                <img src="gameimage/<%# DataBinder.Eval(Container.DataItem, "ImageUrl")%>" alt="" /></a>
                                        </div>
                                        <br />
                                        <asp:LinkButton ID="lnkGamesPlay" GameID='<%# DataBinder.Eval(Container.DataItem, "GameID")%>' runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Title")%>' OnClick="lnkGamesPlay_Click"></asp:LinkButton>
                                        <asp:ImageButton ID="imgRemove" GameID='<%# DataBinder.Eval(Container.DataItem, "GameID")%>' style="float:right;" ToolTip="Remove Bookmark" ImageUrl="~/css/images/Close-icon.png" runat="server" OnClick="imgRemove_Click" OnClientClick="return confirm('Are you sure want to unmark this?');"/>
                                    </div>
                                </ItemTemplate>
                            </asp:DataList>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
